﻿@{
    Layout = null;
}
@model SalesSys.DAL.Models.Order
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>提货单</title>
    <style type="text/css">
        * {
            margin: 0px;
            padding: 0px;
            font-size: 9px;
        }

        body {
            width: 100%;
            height: 100%;
        }

        .title {
            margin: 20px auto;
        }

            .title h1 {
                text-align: center;
            }

            .title h2 {
                margin: 10px auto;
                text-align: center;
            }

        .table {
            text-align: center;
        }

            .table table {
                margin: 0 auto;
            }

                .table table td, th {
                    padding: 2px 6px;
                }
    </style>

</head>

<body>

<div class="content">
			<div class="title">
				<h1 style="font-size: 24px"> 中伟钢物联发展有限公司（钢圈网）</h1>
				<h2 style="font-size: 18px">提 货 单</h2>
			</div>
			<div class="table">
				<table border="1" align="center" cellspacing="0" frame="border" rules="all" width="600px">
					<tr>
						<th colspan="11" align="right">NO：@Model.CodeNum</th>
					</tr>
					<tr>
						<td width="50%" colspan="5" align="left">开单日期：@Model.CreateTime.ToShortDateString()</td>
						<td width="50%" colspan="6" align="left">收货地点：@Model.District @Model.Address</td>
					</tr>
					<tr>
						<td width="50%" colspan="5" align="left">提货单位：吨</td>
						<td width="50%" colspan="6" align="left">提货车号：@Model.VehicleInfos</td>
					</tr>
					<tr>
						<th width="13%" rowspan="2">品名</th>
						<th width="10%" rowspan="2">材质</th>
						<th width="10%" rowspan="2">产地</th>
						<th width="10%" rowspan="2">规格</th>
						<th width="15%" colspan="2">应提数</th>
						<th width="15%" colspan="2">实提数</th>
						<th width="7%" rowspan="2">单价</th>
						<th width="10%" rowspan="2">金额</th>
						<th width="10%" rowspan="2">备注</th>
					</tr>
					<tr>
						<th>件数</th>
						<th>吨位</th>
						<th>件数</th>
						<th>吨位</th>
					</tr>
                    @foreach (var item in Model.CommodityInfos)
                    {
                        <tr>
                            <td>@item.Commodity.Name</td>
                            <td>@item.Commodity.Standard</td>
                            <td>@item.Commodity.Supplier.Brand</td>
                            <td>@item.Commodity.Format</td>
                            <td>@item.Count</td>
                            <td>@item.Weight.ToString("0.000")</td>
                            <td></td>
                            <td></td>
                            <td>@string.Format("{0:N}", item.Price)</td>
                            <td>@string.Format("{0:N}", (item.Weight*item.Price))</td>
                            <td></td>
                        </tr>
                    }
					<tr>
						<th>合计：</th>
						<th>@Model.Weight t</th>
						<th></th>
						<th></th>
						<th></th>
						<th></th>
						<th></th>
						<th></th>
						<th></th>
						<th></th>
						<th></th>
					</tr>
					<tr>
						<td align="left" colspan="11">
							<h3>注意事项：</h3>
							<p>1.本提单一式三联，加盖本公司印章后生效，涂改无效。</p>
							<p>2.本提单所开应提数不得超发，若需超发，需本单位签字盖章同意。</p>
							<p>3.购货方由于提单保管不善，造成冒领或遗失，由购货方自行负责损失。</p>
							<p>4.本提单从开单之日起，三日内有效，服务电话：0379-60667709。</p>
						</td>
					</tr>
					<tr>
						<td colspan="3" width="33%" align="left">制单：@Model.Creater.Name</td>
						<td colspan="3" width="33%" align="left">提货人：</td>
						<td colspan="5" width="33%" align="left">发货人：</td>
					</tr>
				</table>
			</div>
		</div>
</body>
</html>
